Repository navigation
feat: use managed App capacity for public organization backfill - #471
Merged
Merged
Conversation
|
🦞👀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
An operator could have thousands of GitHub App requests available while a public-catalog refresh failed on the shared anonymous quota. Since a grant lasts five minutes, the reader needs enough capacity to renew it, not just enough for one successful request.
User Impact
Public organization discovery and renewal now use the existing installation helper without adding permissions. The public directory and the installation's selected repository list remain separate, so a public repository is never described as installation-selected unless GitHub actually listed it there.
Why This Change Was Made
The collector pins one installation token for both inventories and still requires two complete matching public directory passes. Preflight reports the quota evidence from those actual reads and their probes. Nonflagship backfill can now rotate through 16 repositories in the same 25-second allowance, using the existing GraphQL reserve and writer.
Evidence
Two managed directory traversals returned the same 98 public OpenClaw repositories as the previously qualified catalog, while the installation selected zero public OpenClaw repositories. A native preflight recorded three metadata reads and three quota probes on the App's 20,000-request REST resource. An offline poll test separately verified that the App's GraphQL client hydrated nonflagship parents above its reserve and refused the content request at the half-window floor.